<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: /home/alejandro/Desarrollo eclipse/os1/Thirdparty/g2o/g2o/core/sparse_block_matrix_ccs.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('sparse__block__matrix__ccs_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">sparse_block_matrix_ccs.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="sparse__block__matrix__ccs_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// g2o - General Graph Optimization</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions are</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// met:</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// * Redistributions of source code must retain the above copyright notice,</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//   this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//   notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//   documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#ifndef G2O_SPARSE_BLOCK_MATRIX_CCS_H</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#define G2O_SPARSE_BLOCK_MATRIX_CCS_H</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;cassert&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;eigen3/Eigen/Core&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;../../config.h&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="matrix__operations_8h.html">matrix_operations.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifdef _MSC_VER</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;tr1/unordered_map&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceg2o.html">g2o</a> {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">class</span> MatrixType&gt;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html">   53</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html">SparseBlockMatrixCCS</a></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a41ea1c8c9d94a25544903ae8345c0354">   57</a></span>&#160;      <span class="keyword">typedef</span> MatrixType <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a41ea1c8c9d94a25544903ae8345c0354">SparseMatrixBlock</a>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a52c6a8fec1da43ee12f74b4704ee470f">   60</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a52c6a8fec1da43ee12f74b4704ee470f">cols</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>.size() ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>.back() : 0;}</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ad98ce4c84411c9982b06a025ad94ce57">   62</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ad98ce4c84411c9982b06a025ad94ce57">rows</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>.size() ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>.back() : 0;}</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html">   67</a></span>&#160;      <span class="keyword">struct </span><a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html">RowBlock</a></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      {</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#af414f235d5aa28ca1508cfa0860c4949">   69</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#af414f235d5aa28ca1508cfa0860c4949">row</a>;              </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a88ab75d0e29496d3ca023105256a2926">   70</a></span>&#160;        MatrixType* <a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a88ab75d0e29496d3ca023105256a2926">block</a>;    </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a0c9f288219a7fd8ad58c1dd2214734f5">   71</a></span>&#160;        <a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a0c9f288219a7fd8ad58c1dd2214734f5">RowBlock</a>() : row(-1), block(0) {}</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a78e2ec549fa14a225280b94022d05cea">   72</a></span>&#160;        <a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a78e2ec549fa14a225280b94022d05cea">RowBlock</a>(<span class="keywordtype">int</span> r, MatrixType* b) : row(r), block(b) {}</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#aba437a681bd37d7320fc74e860ce2acf">   73</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#aba437a681bd37d7320fc74e860ce2acf">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html">RowBlock</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> row &lt; other.<a class="code" href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#af414f235d5aa28ca1508cfa0860c4949">row</a>;}</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      };</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a4fc5dfe0a9ff9bd62065ca4b17f25bc1">   75</a></span>&#160;      <span class="keyword">typedef</span> std::vector&lt;RowBlock&gt;      <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a4fc5dfe0a9ff9bd62065ca4b17f25bc1">SparseColumn</a>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#abaeeb7ad0ba28f37dba85601882806f1">   77</a></span>&#160;      <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#abaeeb7ad0ba28f37dba85601882806f1">SparseBlockMatrixCCS</a>(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; rowIndices, <span class="keyword">const</span> std::vector&lt;int&gt;&amp; colIndices) :</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>(rowIndices), <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>(colIndices)</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      {}</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a02af79eca0a8b405087947a733b0140c">   82</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a02af79eca0a8b405087947a733b0140c">rowsOfBlock</a>(<span class="keywordtype">int</span> r)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> r ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[r] - <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[r-1] : <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[0] ; }</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a3c466f15cdac837586e156c0f2655471">   85</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a3c466f15cdac837586e156c0f2655471">colsOfBlock</a>(<span class="keywordtype">int</span> c)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> c ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[c] - <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[c-1] : <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[0]; }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aa687d275090226a00f2685d66d134fcd">   88</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aa687d275090226a00f2685d66d134fcd">rowBaseOfBlock</a>(<span class="keywordtype">int</span> r)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> r ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[r-1] : 0 ; }</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6b25e7158b6d546920161db15d279d67">   91</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6b25e7158b6d546920161db15d279d67">colBaseOfBlock</a>(<span class="keywordtype">int</span> c)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> c ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[c-1] : 0 ; }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a30586863195a37c6ac87d7fb17376ee7">   94</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;SparseColumn&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a30586863195a37c6ac87d7fb17376ee7">blockCols</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>;}</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a5a9ef3cd8399a335edec8b7e934192b8">   95</a></span>&#160;      std::vector&lt;SparseColumn&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a5a9ef3cd8399a335edec8b7e934192b8">blockCols</a>() { <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>;}</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aafbd3a59409bcf2d518cda71d8a33229">   98</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aafbd3a59409bcf2d518cda71d8a33229">rowBlockIndices</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>;}</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#adfc832a66dc5437ebb2d820b0a1104b9">  101</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#adfc832a66dc5437ebb2d820b0a1104b9">colBlockIndices</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>;}</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ade50ae61556e057549a64962b55ec194">  103</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ade50ae61556e057549a64962b55ec194">rightMultiply</a>(<span class="keywordtype">double</span>*&amp; dest, <span class="keyword">const</span> <span class="keywordtype">double</span>* src)<span class="keyword"> const</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keyword">      </span>{</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordtype">int</span> destSize=<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a52c6a8fec1da43ee12f74b4704ee470f">cols</a>();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keywordflow">if</span> (! dest){</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;          dest=<span class="keyword">new</span> <span class="keywordtype">double</span> [ destSize ];</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;          memset(dest,0, destSize*<span class="keyword">sizeof</span>(<span class="keywordtype">double</span>));</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="comment">// map the memory by Eigen</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        Eigen::Map&lt;Eigen::VectorXd&gt; destVec(dest, destSize);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        Eigen::Map&lt;const Eigen::VectorXd&gt; srcVec(src, <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ad98ce4c84411c9982b06a025ad94ce57">rows</a>());</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#      ifdef G2O_OPENMP</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#      pragma omp parallel for default (shared) schedule(dynamic, 10)</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#      endif</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i &lt; static_cast&lt;int&gt;(<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>.size()); ++i){</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;          <span class="keywordtype">int</span> destOffset = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6b25e7158b6d546920161db15d279d67">colBaseOfBlock</a>(i);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;          <span class="keywordflow">for</span> (<span class="keyword">typename</span> SparseColumn::const_iterator it = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].begin(); it!=<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].end(); ++it) {</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <span class="keyword">const</span> SparseMatrixBlock* a = it-&gt;block;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            <span class="keywordtype">int</span> srcOffset = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aa687d275090226a00f2685d66d134fcd">rowBaseOfBlock</a>(it-&gt;row);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            <span class="comment">// destVec += *a.transpose() * srcVec (according to the sub-vector parts)</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <a class="code" href="namespaceg2o_1_1internal.html#ad176878dff85b91f1dbabed52cbf696e">internal::atxpy</a>(*a, srcVec, srcOffset, destVec, destOffset);</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;          }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        }</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;      }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6500e67cc29b3fe51bc40930d97d0ac5">  133</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6500e67cc29b3fe51bc40930d97d0ac5">sortColumns</a>()</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;      {</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i &lt; static_cast&lt;int&gt;(<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>.size()); ++i){</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;          std::sort(<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].begin(), <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].end());</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        }</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;      }</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a1751f9966ed8ab54d5a2942388407261">  143</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a1751f9966ed8ab54d5a2942388407261">fillCCS</a>(<span class="keywordtype">int</span>* Cp, <span class="keywordtype">int</span>* Ci, <span class="keywordtype">double</span>* Cx, <span class="keywordtype">bool</span> upperTriangle = <span class="keyword">false</span>)<span class="keyword"> const</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">      </span>{</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        assert(Cp &amp;&amp; Ci &amp;&amp; Cx &amp;&amp; <span class="stringliteral">&quot;Target destination is NULL&quot;</span>);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <span class="keywordtype">int</span> nz=0;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>.size(); ++i){</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;          <span class="keywordtype">int</span> cstart=i ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[i-1] : 0;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;          <span class="keywordtype">int</span> csize=<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a3c466f15cdac837586e156c0f2655471">colsOfBlock</a>(i);</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;          <span class="keywordflow">for</span> (<span class="keywordtype">int</span> c=0; c&lt;csize; ++c) {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;            *Cp=nz;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;            <span class="keywordflow">for</span> (<span class="keyword">typename</span> SparseColumn::const_iterator it = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].begin(); it!=<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].end(); ++it) {</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;              <span class="keyword">const</span> SparseMatrixBlock* b=it-&gt;block;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;              <span class="keywordtype">int</span> rstart=it-&gt;row ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[it-&gt;row-1] : 0;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;              <span class="keywordtype">int</span> elemsToCopy = b-&gt;rows();</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;              <span class="keywordflow">if</span> (upperTriangle &amp;&amp; rstart == cstart)</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                elemsToCopy = c + 1;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;              <span class="keywordflow">for</span> (<span class="keywordtype">int</span> r=0; r&lt;elemsToCopy; ++r){</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                *Cx++ = (*b)(r,c);</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                *Ci++ = rstart++;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                ++nz;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;              }</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            }</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            ++Cp;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;          }</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        }</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        *Cp=nz;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keywordflow">return</span> nz;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;      }</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6bb0a7087552ec2d777c64de43d955f1">  176</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6bb0a7087552ec2d777c64de43d955f1">fillCCS</a>(<span class="keywordtype">double</span>* Cx, <span class="keywordtype">bool</span> upperTriangle = <span class="keyword">false</span>)<span class="keyword"> const</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword">      </span>{</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        assert(Cx &amp;&amp; <span class="stringliteral">&quot;Target destination is NULL&quot;</span>);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordtype">double</span>* CxStart = Cx;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keywordtype">int</span> cstart = 0;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>.size(); ++i){</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;          <span class="keywordtype">int</span> csize = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[i] - cstart;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;          <span class="keywordflow">for</span> (<span class="keywordtype">int</span> c=0; c&lt;csize; ++c) {</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            <span class="keywordflow">for</span> (<span class="keyword">typename</span> SparseColumn::const_iterator it = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].begin(); it!=<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[i].end(); ++it) {</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;              <span class="keyword">const</span> SparseMatrixBlock* b = it-&gt;block;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;              <span class="keywordtype">int</span> rstart = it-&gt;row ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[it-&gt;row-1] : 0;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;              <span class="keywordtype">int</span> elemsToCopy = b-&gt;rows();</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;              <span class="keywordflow">if</span> (upperTriangle &amp;&amp; rstart == cstart)</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                elemsToCopy = c + 1;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;              memcpy(Cx, b-&gt;data() + c*b-&gt;rows(), elemsToCopy * <span class="keyword">sizeof</span>(double));</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;              Cx += elemsToCopy;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;            }</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;          }</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;          cstart = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[i];</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        }</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordflow">return</span> Cx - CxStart;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;      }</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">  202</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>; </div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">  203</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>; </div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">  204</a></span>&#160;      std::vector&lt;SparseColumn&gt; <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>;     </div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;  };</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">class</span> MatrixType&gt;</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html">  215</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html">SparseBlockMatrixHashMap</a></div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;  {</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a03d422844dbf0b10f4fcf7e69fdb0bca">  219</a></span>&#160;      <span class="keyword">typedef</span> MatrixType <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a03d422844dbf0b10f4fcf7e69fdb0bca">SparseMatrixBlock</a>;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a8bd11b2428897c5c086f0d903affcbec">  222</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a8bd11b2428897c5c086f0d903affcbec">cols</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>.size() ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>.back() : 0;}</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae2749be9e20ee0f2ca85df29b74ecb25">  224</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae2749be9e20ee0f2ca85df29b74ecb25">rows</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>.size() ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>.back() : 0;}</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae364a722296b90e32dd6c3a8fbeb49ae">  226</a></span>&#160;      <span class="keyword">typedef</span> std::tr1::unordered_map&lt;int, MatrixType*&gt; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae364a722296b90e32dd6c3a8fbeb49ae">SparseColumn</a>;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#abe4b64edb59d95b632d7f655445157df">  228</a></span>&#160;      <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#abe4b64edb59d95b632d7f655445157df">SparseBlockMatrixHashMap</a>(<span class="keyword">const</span> std::vector&lt;int&gt;&amp; rowIndices, <span class="keyword">const</span> std::vector&lt;int&gt;&amp; colIndices) :</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>(rowIndices), <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>(colIndices)</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;      {}</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#afd5e53b51549fbe1c71d96f986120b65">  233</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#afd5e53b51549fbe1c71d96f986120b65">rowsOfBlock</a>(<span class="keywordtype">int</span> r)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> r ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[r] - <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[r-1] : <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[0] ; }</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a7f9538beeea7bed6300e864dbefccff5">  236</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a7f9538beeea7bed6300e864dbefccff5">colsOfBlock</a>(<span class="keywordtype">int</span> c)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> c ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[c] - <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[c-1] : <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[0]; }</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a9a22f09766c630673066c4ae71be7772">  239</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a9a22f09766c630673066c4ae71be7772">rowBaseOfBlock</a>(<span class="keywordtype">int</span> r)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> r ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>[r-1] : 0 ; }</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#acb3612df298b2c482db36f6c40fc44c0">  242</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#acb3612df298b2c482db36f6c40fc44c0">colBaseOfBlock</a>(<span class="keywordtype">int</span> c)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> c ? <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>[c-1] : 0 ; }</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a07d4746ccda502bd815a09aefe42eac6">  245</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;SparseColumn&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a07d4746ccda502bd815a09aefe42eac6">blockCols</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>;}</div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a2879ea0d9b530e7c522c912dff279b5d">  246</a></span>&#160;      std::vector&lt;SparseColumn&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a2879ea0d9b530e7c522c912dff279b5d">blockCols</a>() { <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>;}</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a0175c628d15ff70edbcfc843639b66ae">  249</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a0175c628d15ff70edbcfc843639b66ae">rowBlockIndices</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">_rowBlockIndices</a>;}</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#af52ca00195dd79b48ba066f6adcbc17e">  252</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#af52ca00195dd79b48ba066f6adcbc17e">colBlockIndices</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">_colBlockIndices</a>;}</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a08330c47b1b60bbe008e3c4ee2f5150f">  257</a></span>&#160;      MatrixType* <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a08330c47b1b60bbe008e3c4ee2f5150f">addBlock</a>(<span class="keywordtype">int</span> r, <span class="keywordtype">int</span> c, <span class="keywordtype">bool</span> zeroBlock = <span class="keyword">false</span>)</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;      {</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        assert(c &lt;(<span class="keywordtype">int</span>)<a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>.size() &amp;&amp; <span class="stringliteral">&quot;accessing column which is not available&quot;</span>);</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        SparseColumn&amp; sparseColumn = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">_blockCols</a>[c];</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        <span class="keyword">typename</span> SparseColumn::iterator foundIt = sparseColumn.find(r);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keywordflow">if</span> (foundIt == sparseColumn.end()) {</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;          <span class="keywordtype">int</span> rb = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a02af79eca0a8b405087947a733b0140c">rowsOfBlock</a>(r);</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;          <span class="keywordtype">int</span> cb = <a class="code" href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a3c466f15cdac837586e156c0f2655471">colsOfBlock</a>(c);</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;          MatrixType* m = <span class="keyword">new</span> MatrixType(rb, cb);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;          <span class="keywordflow">if</span> (zeroBlock)</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            m-&gt;setZero();</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;          sparseColumn[r] = m;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;          <span class="keywordflow">return</span> m;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        }</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <span class="keywordflow">return</span> foundIt-&gt;second;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;      }</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ab002c32872fbce7d3485a5032eaee0de">  275</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ab002c32872fbce7d3485a5032eaee0de">_rowBlockIndices</a>; </div><div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a1def3b2ef5c5ee646d831cda7b1954be">  276</a></span>&#160;      <span class="keyword">const</span> std::vector&lt;int&gt;&amp; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#a1def3b2ef5c5ee646d831cda7b1954be">_colBlockIndices</a>; </div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae54514ce47f9cf1e54455d1f0adceb23">  277</a></span>&#160;      std::vector&lt;SparseColumn&gt; <a class="code" href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae54514ce47f9cf1e54455d1f0adceb23">_blockCols</a>;     </div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;  };</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;} <span class="comment">//end namespace</span></div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block_html_a0c9f288219a7fd8ad58c1dd2214734f5"><div class="ttname"><a href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a0c9f288219a7fd8ad58c1dd2214734f5">g2o::SparseBlockMatrixCCS::RowBlock::RowBlock</a></div><div class="ttdeci">RowBlock()</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:71</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_ab002c32872fbce7d3485a5032eaee0de"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#ab002c32872fbce7d3485a5032eaee0de">g2o::SparseBlockMatrixHashMap::_rowBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; _rowBlockIndices</div><div class="ttdoc">vector of the indices of the blocks along the rows. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:275</div></div>
<div class="ttc" id="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block_html_a88ab75d0e29496d3ca023105256a2926"><div class="ttname"><a href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a88ab75d0e29496d3ca023105256a2926">g2o::SparseBlockMatrixCCS::RowBlock::block</a></div><div class="ttdeci">MatrixType * block</div><div class="ttdoc">matrix pointer for the block </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:70</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_abe4b64edb59d95b632d7f655445157df"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#abe4b64edb59d95b632d7f655445157df">g2o::SparseBlockMatrixHashMap::SparseBlockMatrixHashMap</a></div><div class="ttdeci">SparseBlockMatrixHashMap(const std::vector&lt; int &gt; &amp;rowIndices, const std::vector&lt; int &gt; &amp;colIndices)</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:228</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_ad98ce4c84411c9982b06a025ad94ce57"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ad98ce4c84411c9982b06a025ad94ce57">g2o::SparseBlockMatrixCCS::rows</a></div><div class="ttdeci">int rows() const</div><div class="ttdoc">rows of the matrix </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:62</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_af52ca00195dd79b48ba066f6adcbc17e"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#af52ca00195dd79b48ba066f6adcbc17e">g2o::SparseBlockMatrixHashMap::colBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; colBlockIndices() const</div><div class="ttdoc">indices of the column blocks </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:252</div></div>
<div class="ttc" id="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block_html_a78e2ec549fa14a225280b94022d05cea"><div class="ttname"><a href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#a78e2ec549fa14a225280b94022d05cea">g2o::SparseBlockMatrixCCS::RowBlock::RowBlock</a></div><div class="ttdeci">RowBlock(int r, MatrixType *b)</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:72</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a8bd11b2428897c5c086f0d903affcbec"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a8bd11b2428897c5c086f0d903affcbec">g2o::SparseBlockMatrixHashMap::cols</a></div><div class="ttdeci">int cols() const</div><div class="ttdoc">columns of the matrix </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:222</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a6b25e7158b6d546920161db15d279d67"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6b25e7158b6d546920161db15d279d67">g2o::SparseBlockMatrixCCS::colBaseOfBlock</a></div><div class="ttdeci">int colBaseOfBlock(int c) const</div><div class="ttdoc">where does the col at block-col r start? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:91</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a2879ea0d9b530e7c522c912dff279b5d"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a2879ea0d9b530e7c522c912dff279b5d">g2o::SparseBlockMatrixHashMap::blockCols</a></div><div class="ttdeci">std::vector&lt; SparseColumn &gt; &amp; blockCols()</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:246</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a1def3b2ef5c5ee646d831cda7b1954be"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a1def3b2ef5c5ee646d831cda7b1954be">g2o::SparseBlockMatrixHashMap::_colBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; _colBlockIndices</div><div class="ttdoc">vector of the indices of the blocks along the cols </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:276</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a4fc5dfe0a9ff9bd62065ca4b17f25bc1"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a4fc5dfe0a9ff9bd62065ca4b17f25bc1">g2o::SparseBlockMatrixCCS::SparseColumn</a></div><div class="ttdeci">std::vector&lt; RowBlock &gt; SparseColumn</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:75</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_ab6b173607380a367cc1cd67442c1c3e2"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ab6b173607380a367cc1cd67442c1c3e2">g2o::SparseBlockMatrixCCS::_blockCols</a></div><div class="ttdeci">std::vector&lt; SparseColumn &gt; _blockCols</div><div class="ttdoc">the matrices stored in CCS order </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:204</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html">g2o::SparseBlockMatrixHashMap</a></div><div class="ttdoc">Sparse matrix which uses blocks based on hash structures. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:215</div></div>
<div class="ttc" id="namespaceg2o_1_1internal_html_ad176878dff85b91f1dbabed52cbf696e"><div class="ttname"><a href="namespaceg2o_1_1internal.html#ad176878dff85b91f1dbabed52cbf696e">g2o::internal::atxpy</a></div><div class="ttdeci">void atxpy(const MatrixType &amp;A, const Eigen::Map&lt; const Eigen::VectorXd &gt; &amp;x, int xoff, Eigen::Map&lt; Eigen::VectorXd &gt; &amp;y, int yoff)</div><div class="ttdef"><b>Definition:</b> matrix_operations.h:54</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a7f9538beeea7bed6300e864dbefccff5"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a7f9538beeea7bed6300e864dbefccff5">g2o::SparseBlockMatrixHashMap::colsOfBlock</a></div><div class="ttdeci">int colsOfBlock(int c) const</div><div class="ttdoc">how many cols does the block at block-col c has? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:236</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a52c6a8fec1da43ee12f74b4704ee470f"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a52c6a8fec1da43ee12f74b4704ee470f">g2o::SparseBlockMatrixCCS::cols</a></div><div class="ttdeci">int cols() const</div><div class="ttdoc">columns of the matrix </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:60</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a41ea1c8c9d94a25544903ae8345c0354"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a41ea1c8c9d94a25544903ae8345c0354">g2o::SparseBlockMatrixCCS::SparseMatrixBlock</a></div><div class="ttdeci">MatrixType SparseMatrixBlock</div><div class="ttdoc">this is the type of the elementary block, it is an Eigen::Matrix. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:57</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a3c466f15cdac837586e156c0f2655471"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a3c466f15cdac837586e156c0f2655471">g2o::SparseBlockMatrixCCS::colsOfBlock</a></div><div class="ttdeci">int colsOfBlock(int c) const</div><div class="ttdoc">how many cols does the block at block-col c has? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:85</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a07d4746ccda502bd815a09aefe42eac6"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a07d4746ccda502bd815a09aefe42eac6">g2o::SparseBlockMatrixHashMap::blockCols</a></div><div class="ttdeci">const std::vector&lt; SparseColumn &gt; &amp; blockCols() const</div><div class="ttdoc">the block matrices per block-column </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:245</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_acb3612df298b2c482db36f6c40fc44c0"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#acb3612df298b2c482db36f6c40fc44c0">g2o::SparseBlockMatrixHashMap::colBaseOfBlock</a></div><div class="ttdeci">int colBaseOfBlock(int c) const</div><div class="ttdoc">where does the col at block-col r start? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:242</div></div>
<div class="ttc" id="namespaceg2o_html"><div class="ttname"><a href="namespaceg2o.html">g2o</a></div><div class="ttdef"><b>Definition:</b> base_binary_edge.h:37</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a03d422844dbf0b10f4fcf7e69fdb0bca"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a03d422844dbf0b10f4fcf7e69fdb0bca">g2o::SparseBlockMatrixHashMap::SparseMatrixBlock</a></div><div class="ttdeci">MatrixType SparseMatrixBlock</div><div class="ttdoc">this is the type of the elementary block, it is an Eigen::Matrix. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:219</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_ade50ae61556e057549a64962b55ec194"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ade50ae61556e057549a64962b55ec194">g2o::SparseBlockMatrixCCS::rightMultiply</a></div><div class="ttdeci">void rightMultiply(double *&amp;dest, const double *src) const</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:103</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a0175c628d15ff70edbcfc843639b66ae"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a0175c628d15ff70edbcfc843639b66ae">g2o::SparseBlockMatrixHashMap::rowBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; rowBlockIndices() const</div><div class="ttdoc">indices of the row blocks </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:249</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_ae2749be9e20ee0f2ca85df29b74ecb25"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae2749be9e20ee0f2ca85df29b74ecb25">g2o::SparseBlockMatrixHashMap::rows</a></div><div class="ttdeci">int rows() const</div><div class="ttdoc">rows of the matrix </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:224</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a1751f9966ed8ab54d5a2942388407261"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a1751f9966ed8ab54d5a2942388407261">g2o::SparseBlockMatrixCCS::fillCCS</a></div><div class="ttdeci">int fillCCS(int *Cp, int *Ci, double *Cx, bool upperTriangle=false) const</div><div class="ttdoc">fill the CCS arrays of a matrix, arrays have to be allocated beforehand </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:143</div></div>
<div class="ttc" id="matrix__operations_8h_html"><div class="ttname"><a href="matrix__operations_8h.html">matrix_operations.h</a></div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_afd5e53b51549fbe1c71d96f986120b65"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#afd5e53b51549fbe1c71d96f986120b65">g2o::SparseBlockMatrixHashMap::rowsOfBlock</a></div><div class="ttdeci">int rowsOfBlock(int r) const</div><div class="ttdoc">how many rows does the block at block-row r has? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:233</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a08330c47b1b60bbe008e3c4ee2f5150f"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a08330c47b1b60bbe008e3c4ee2f5150f">g2o::SparseBlockMatrixHashMap::addBlock</a></div><div class="ttdeci">MatrixType * addBlock(int r, int c, bool zeroBlock=false)</div><div class="ttdoc">add a block to the pattern, return a pointer to the added block </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:257</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_adfc832a66dc5437ebb2d820b0a1104b9"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#adfc832a66dc5437ebb2d820b0a1104b9">g2o::SparseBlockMatrixCCS::colBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; colBlockIndices() const</div><div class="ttdoc">indices of the column blocks </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:101</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_ae54514ce47f9cf1e54455d1f0adceb23"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae54514ce47f9cf1e54455d1f0adceb23">g2o::SparseBlockMatrixHashMap::_blockCols</a></div><div class="ttdeci">std::vector&lt; SparseColumn &gt; _blockCols</div><div class="ttdoc">the matrices stored in CCS order </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:277</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_a9a22f09766c630673066c4ae71be7772"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#a9a22f09766c630673066c4ae71be7772">g2o::SparseBlockMatrixHashMap::rowBaseOfBlock</a></div><div class="ttdeci">int rowBaseOfBlock(int r) const</div><div class="ttdoc">where does the row at block-row r start? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:239</div></div>
<div class="ttc" id="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block_html_aba437a681bd37d7320fc74e860ce2acf"><div class="ttname"><a href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#aba437a681bd37d7320fc74e860ce2acf">g2o::SparseBlockMatrixCCS::RowBlock::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const RowBlock &amp;other) const</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:73</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a30586863195a37c6ac87d7fb17376ee7"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a30586863195a37c6ac87d7fb17376ee7">g2o::SparseBlockMatrixCCS::blockCols</a></div><div class="ttdeci">const std::vector&lt; SparseColumn &gt; &amp; blockCols() const</div><div class="ttdoc">the block matrices per block-column </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:94</div></div>
<div class="ttc" id="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block_html"><div class="ttname"><a href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html">g2o::SparseBlockMatrixCCS::RowBlock</a></div><div class="ttdoc">A block within a column. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:67</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_abaeeb7ad0ba28f37dba85601882806f1"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#abaeeb7ad0ba28f37dba85601882806f1">g2o::SparseBlockMatrixCCS::SparseBlockMatrixCCS</a></div><div class="ttdeci">SparseBlockMatrixCCS(const std::vector&lt; int &gt; &amp;rowIndices, const std::vector&lt; int &gt; &amp;colIndices)</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:77</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_ae31426bfb6b31bd0fd72de2e18dd5a35"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#ae31426bfb6b31bd0fd72de2e18dd5a35">g2o::SparseBlockMatrixCCS::_colBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; _colBlockIndices</div><div class="ttdoc">vector of the indices of the blocks along the cols </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:203</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_hash_map_html_ae364a722296b90e32dd6c3a8fbeb49ae"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_hash_map.html#ae364a722296b90e32dd6c3a8fbeb49ae">g2o::SparseBlockMatrixHashMap::SparseColumn</a></div><div class="ttdeci">std::tr1::unordered_map&lt; int, MatrixType * &gt; SparseColumn</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:226</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_afabda9a2efe5ea9efb5a1e5312f6e307"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#afabda9a2efe5ea9efb5a1e5312f6e307">g2o::SparseBlockMatrixCCS::_rowBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; _rowBlockIndices</div><div class="ttdoc">vector of the indices of the blocks along the rows. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:202</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a6500e67cc29b3fe51bc40930d97d0ac5"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6500e67cc29b3fe51bc40930d97d0ac5">g2o::SparseBlockMatrixCCS::sortColumns</a></div><div class="ttdeci">void sortColumns()</div><div class="ttdoc">sort the blocks in each column </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:133</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_aa687d275090226a00f2685d66d134fcd"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aa687d275090226a00f2685d66d134fcd">g2o::SparseBlockMatrixCCS::rowBaseOfBlock</a></div><div class="ttdeci">int rowBaseOfBlock(int r) const</div><div class="ttdoc">where does the row at block-row r start? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:88</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_aafbd3a59409bcf2d518cda71d8a33229"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#aafbd3a59409bcf2d518cda71d8a33229">g2o::SparseBlockMatrixCCS::rowBlockIndices</a></div><div class="ttdeci">const std::vector&lt; int &gt; &amp; rowBlockIndices() const</div><div class="ttdoc">indices of the row blocks </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:98</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a02af79eca0a8b405087947a733b0140c"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a02af79eca0a8b405087947a733b0140c">g2o::SparseBlockMatrixCCS::rowsOfBlock</a></div><div class="ttdeci">int rowsOfBlock(int r) const</div><div class="ttdoc">how many rows does the block at block-row r has? </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:82</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html">g2o::SparseBlockMatrixCCS</a></div><div class="ttdoc">Sparse matrix which uses blocks. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:53</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a5a9ef3cd8399a335edec8b7e934192b8"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a5a9ef3cd8399a335edec8b7e934192b8">g2o::SparseBlockMatrixCCS::blockCols</a></div><div class="ttdeci">std::vector&lt; SparseColumn &gt; &amp; blockCols()</div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:95</div></div>
<div class="ttc" id="classg2o_1_1_sparse_block_matrix_c_c_s_html_a6bb0a7087552ec2d777c64de43d955f1"><div class="ttname"><a href="classg2o_1_1_sparse_block_matrix_c_c_s.html#a6bb0a7087552ec2d777c64de43d955f1">g2o::SparseBlockMatrixCCS::fillCCS</a></div><div class="ttdeci">int fillCCS(double *Cx, bool upperTriangle=false) const</div><div class="ttdoc">fill the CCS arrays of a matrix, arrays have to be allocated beforehand. </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:176</div></div>
<div class="ttc" id="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block_html_af414f235d5aa28ca1508cfa0860c4949"><div class="ttname"><a href="structg2o_1_1_sparse_block_matrix_c_c_s_1_1_row_block.html#af414f235d5aa28ca1508cfa0860c4949">g2o::SparseBlockMatrixCCS::RowBlock::row</a></div><div class="ttdeci">int row</div><div class="ttdoc">row of the block </div><div class="ttdef"><b>Definition:</b> sparse_block_matrix_ccs.h:69</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_08235c883c2d11e586a63e6645937db5.html">Thirdparty</a></li><li class="navelem"><a class="el" href="dir_6238d635334f7e809f450ee18181fd21.html">g2o</a></li><li class="navelem"><a class="el" href="dir_62a53d30c17c36057e41412a1a4f77b8.html">g2o</a></li><li class="navelem"><a class="el" href="dir_b7aaf3f9367a0f07449e9b09401b4637.html">core</a></li><li class="navelem"><a class="el" href="sparse__block__matrix__ccs_8h.html">sparse_block_matrix_ccs.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
